package com.health.healthSys.service;

import java.util.List;
import com.health.healthSys.domain.HealthRecords;

/**
 * 健康数据Service接口
 *
 * @author maple
 * @date 2025-02-28
 */
public interface IHealthRecordsService
{
    /**
     * 查询健康数据
     *
     * @param healthId 健康数据主键
     * @return 健康数据
     */
    public HealthRecords selectHealthRecordsByHealthId(String healthId);

    /**
     * 查询健康数据列表
     *
     * @param healthRecords 健康数据
     * @return 健康数据集合
     */
    public List<HealthRecords> selectHealthRecordsList(HealthRecords healthRecords);

    /**
     * 新增健康数据
     *
     * @param healthRecords 健康数据
     * @return 结果
     */
    public int insertHealthRecords(HealthRecords healthRecords);

    /**
     * 修改健康数据
     *
     * @param healthRecords 健康数据
     * @return 结果
     */
    public int updateHealthRecords(HealthRecords healthRecords);

    /**
     * 批量删除健康数据
     *
     * @param healthIds 需要删除的健康数据主键集合
     * @return 结果
     */
    public int deleteHealthRecordsByHealthIds(String[] healthIds);

    /**
     * 删除健康数据信息
     *
     * @param healthId 健康数据主键
     * @return 结果
     */
    public int deleteHealthRecordsByHealthId(String healthId);

    List<HealthRecords> selectBloodSugarData(Long userId, String startDate, String endDate);

    List<HealthRecords> selectBloodPressureData(Long userId, String startDate, String endDate);
}
